﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityCustomerServiceItemConsume : DBEntityBase
    {
        public override string GetTableName()
        {
            return "CUSTOMERSERVICEITEMCONSUME";
        }
        public DBEntityCustomerServiceItemConsume()
            : base()
        {
        }
        public DBEntityCustomerServiceItemConsume(DataRow drRow)
        {
            this.CUSTOMERSERVICEITEMCONSUMEID = Convert.ToInt32(drRow[DBEntityCustomerServiceItemConsume.FieldName.CUSTOMERSERVICEITEMCONSUMEID]);
            this.CUSTOMERSERVICEITEMID = Convert.ToInt32(drRow[DBEntityCustomerServiceItemConsume.FieldName.CUSTOMERSERVICEITEMID]);
            this.CONSUMETIME = Convert.ToDateTime(drRow[DBEntityCustomerServiceItemConsume.FieldName.CONSUMETIME]);
            this.CMINUSCOUNT = Convert.ToInt32(drRow[DBEntityCustomerServiceItemConsume.FieldName.CMINUSCOUNT]);
            this.CMEMO = drRow[DBEntityCustomerServiceItemConsume.FieldName.CMEMO].ToString();
            this.EMPLOYEEID = Convert.ToInt32(drRow[DBEntityCustomerServiceItemConsume.FieldName.EMPLOYEEID]);
            this.RESERVATIONID = Convert.ToInt32(drRow[DBEntityCustomerServiceItemConsume.FieldName.RESERVATIONID]);
            
        }
        /// <summary>
        /// 服务项目消费记录ID
        /// </summary>
        public int CUSTOMERSERVICEITEMCONSUMEID { get; set; }
        /// <summary>
        /// 会员服务项目ID
        /// </summary>
        public int CUSTOMERSERVICEITEMID { get; set; }
        /// <summary>
        /// 消费时间
        /// </summary>
        public DateTime CONSUMETIME { get; set; }
        /// <summary>
        /// 扣减次数
        /// </summary>
        public int CMINUSCOUNT { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string CMEMO { get; set; }
        /// <summary>
        /// 服务美容师ID
        /// </summary>
        public int EMPLOYEEID { get; set; }
        /// <summary>
        /// 预约ID
        /// </summary>
        public int RESERVATIONID { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName {
            /// <summary>
            /// 服务项目消费记录ID
            /// </summary>
            public const string CUSTOMERSERVICEITEMCONSUMEID = "CUSTOMERSERVICEITEMCONSUMEID";
            /// <summary>
            /// 会员服务项目ID
            /// </summary>
            public const string CUSTOMERSERVICEITEMID = "CUSTOMERSERVICEITEMID";
            /// <summary>
            /// 消费时间
            /// </summary>
            public const string CONSUMETIME = "CONSUMETIME";
            /// <summary>
            /// 扣减次数
            /// </summary>
            public const string CMINUSCOUNT = "CMINUSCOUNT";
            /// <summary>
            /// 备注说明
            /// </summary>
            public const string CMEMO = "CMEMO";
            /// <summary>
            /// 服务美容师ID
            /// </summary>
            public const string EMPLOYEEID = "EMPLOYEEID";
            /// <summary>
            /// 预约ID
            /// </summary>
            public const string RESERVATIONID = "RESERVATIONID";
        }
    }

}
